package com.ruoyi.exam.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.exam.domain.TextContent;

import java.util.Date;
import java.util.List;
import java.util.function.Function;

/**
 * <p>
 * 文本表 服务类
 * </p>
 *
 * @author JY
 * @since 2024-02-24
 */
public interface ITextContentService extends IService<TextContent> {

    <T, R> TextContent jsonConvertInsert(List<T> list, Date now, Function<? super T, ? extends R> mapper);

    <T, R> TextContent jsonConvertUpdate(TextContent textContent, List<T> list, Function<? super T, ? extends R> mapper);
}
